/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package extension.game.shop;

import com.smartfoxserver.v2.entities.data.ISFSObject;
import com.smartfoxserver.v2.entities.data.SFSObject;

/**
 *
 * @author Hung
 */
public class Item {

    private int id;
    private int kind;
    private String name;
    private long price;
    private String image;
    private String describe;

    public Item(int id, int kind, String name, long price, String image, String describe) {
        this.id = id;
        this.kind = kind;
        this.name = name;
        this.price = price;
        this.image = image;
        this.describe = describe;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the price
     */
    public long getPrice() {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(long price) {
        this.price = price;
    }

    /**
     * @return the image
     */
    public String getImage() {
        return image;
    }

    /**
     * @param image the image to set
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * @return the describe
     */
    public String getDescribe() {
        return describe;
    }

    /**
     * @param describe the describe to set
     */
    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public ISFSObject toSFSObject() {
        ISFSObject result = new SFSObject();
        result.putInt("id", id);
        result.putInt("kind", kind);
        result.putUtfString("name", name);
        result.putLong("price", price);
        result.putUtfString("image", image);
        result.putUtfString("describe", describe);
        return result;
    }

    /**
     * @return the kind
     */
    public int getKind() {
        return kind;
    }

    /**
     * @param kind the kind to set
     */
    public void setKind(int kind) {
        this.kind = kind;
    }
}
